﻿//-----------------------------------------------------------------------
// <author>Paul Long</author>
//-----------

namespace NMTopUsers
{
    using System;
    using System.Runtime.InteropServices;

    /// <summary>
    /// Native method calls for attaching to console
    /// </summary>
    internal static class NativeMethods
    {
        /// <summary>
        /// Native Method to attach to console.
        /// </summary>
        /// <param name="procid">Process ID to attach to.</param>
        /// <returns>True if succesful.</returns>
        [System.Runtime.InteropServices.DllImport("kernel32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static extern bool AttachConsole(int procid);
    }
}
